package net.xdclass.user.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 新增收货地址请求对象
 */
@Data
@ApiModel("新增收货地址实体")
public class AddressAddRequest {

    /**
     * 是否默认收货地址：0->否；1->是
     */
//    @JsonProperty("default_status")
    @ApiModelProperty(value = "是否是默认收货地址", example = "0")
    private Integer defaultStatus = 0;

    /**
     * 收发货人姓名
     */
//    @JsonProperty("receive_name")
    @ApiModelProperty(value = "是否是默认收货地址", example = "0")
    private String receiveName;

    /**
     * 收货人电话
     */
    @ApiModelProperty(value = "收货人电话", example = "13422227777")
    private String phone;

    /**
     * 省/直辖市
     */
    @ApiModelProperty(value = "省", example = "四川省")
    private String province;

    /**
     * 市
     */
    @ApiModelProperty(value = "市", example = "成都市")
    private String city;

    /**
     * 区
     */
    @ApiModelProperty(value = "区", example = "武侯区")
    private String region;

    /**
     * 详细地址
     */
//    @JsonProperty("detail_address")
    @ApiModelProperty(value = "详细地址")
    private String detailAddress;

//    @JsonProperty("create_time")
    @ApiModelProperty(value = "创建时间", example = "2023-12-04 14:32:12")
    private Date createTime;
}
